package com.tg.service.nginxUpstream;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by MagicBook on 2019/11/25.
 */
@RestController
@RequestMapping("/nginx")
@Api
public class NginxCtrl {

    /**
     * 服务标识
     */
    @Value("${server.tag}")
    private String tag;

    @RequestMapping(value = "/index")
    @ApiOperation("测试接口")
    public String index() {
        System.out.println("我是" + tag);
        return "我是" + tag;
    }
}
